package com.cookbook.service;

import com.cookbook.database.model.Share;
import com.cookbook.database.model.User;

import java.util.List;

/**
 * @author 毛川
 */
public interface ShareService {
    List<Share> select(Integer page, Integer limit);
    List<Share> selectMyShare(User user, Integer page, Integer limit);
    void insert(Share share);
    Long deleteSelfByShareId(User user, Integer shareId);
}
